/*
 * Copyright (C) 2011 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.ohos;

import ohos.agp.components.DragInfo;

/**
 * MotionEvent
 */
public class MotionEvent {
    /**
     * Bit mask of the parts of the action code that are the action itself.
     */
    public static final int ACTION_MASK = 0xff;

    /**
     * Constant for {link #getAction}: A pressed gesture has started, the
     * motion contains the initial starting location.
     */
    public static final int ACTION_DOWN = 0;

    /**
     * Constant for {link #getAction}: A pressed gesture has finished, the
     * motion contains the final release location as well as any intermediate
     * points since the last down or move event.
     */
    public static final int ACTION_UP = 1;

    /**
     * Constant for {link #getAction}: A change has happened during a
     * press gesture (between {link #ACTION_DOWN} and {link #ACTION_UP}).
     * The motion contains the most recent point, as well as any intermediate
     * points since the last down or move event.
     */
    public static final int ACTION_MOVE = 2;

    /**
     * Constant for {link #getAction}: The current gesture has been aborted.
     * You will not receive any more points in it.  You should treat this as
     * an up event, but not perform any action that you normally would.
     */
    public static final int ACTION_CANCEL = 3;

    /**
     * Constant for {link #getAction}: A movement has happened outside of the
     * normal bounds of the UI element.  This does not provide a full gesture,
     * but only the initial location of the movement/touch.
     */
    public static final int ACTION_OUTSIDE = 4;
    /**
     * A non-primary pointer has gone down.  The bits in
     * {link #ACTION_POINTER_ID_MASK} indicate which pointer changed.
     */
    public static final int ACTION_POINTER_DOWN = 5;

    /**
     * A non-primary pointer has gone up.  The bits in
     * {link #ACTION_POINTER_ID_MASK} indicate which pointer changed.
     */
    public static final int ACTION_POINTER_UP = 6;
    /**
     * Constant for {link #getAction}: A change happened but the pointer
     * is not down (unlike {link #ACTION_MOVE}).  The motion contains the most
     * recent point, as well as any intermediate points since the last
     * hover move event.
     * <p>
     * This action is always delivered to the window or view under the pointer.
     * </p><p>
     * This action is not a touch event so it is delivered to
     * {link View#onGenericMotionEvent(MotionEvent)} rather than
     * {link View#onTouchEvent(MotionEvent)}.
     * </p>
     */
    public static final int ACTION_HOVER_MOVE = 7;
    /**
     * Constant for {link #getAction}: The motion event contains relative
     * vertical and/or horizontal scroll offsets.  Use {link #getAxisValue(int)}
     * to retrieve the information from {link #AXIS_VSCROLL} and {link #AXIS_HSCROLL}.
     * The pointer may or may not be down when this event is dispatched.
     * <p></p>
     * This action is always delivered to the window or view under the pointer, which
     * may not be the window or view currently touched.
     * <p>
     * This action is not a touch event so it is delivered to
     * {link View#onGenericMotionEvent(MotionEvent)} rather than
     * {link View#onTouchEvent(MotionEvent)}.
     * </p>
     */
    public static final int ACTION_SCROLL = 8;
    /**
     * Constant for {link #getAction}: The pointer is not down but has entered the
     * boundaries of a window or view.
     * <p>
     * This action is always delivered to the window or view under the pointer.
     * </p><p>
     * This action is not a touch event so it is delivered to
     * {link View#onGenericMotionEvent(MotionEvent)} rather than
     * {link View#onTouchEvent(MotionEvent)}.
     * </p>
     */
    public static final int ACTION_HOVER_ENTER = 9;
    /**
     * Constant for {link #getAction}: The pointer is not down but has exited the
     * boundaries of a window or view.
     * <p>
     * This action is always delivered to the window or view that was previously under the pointer.
     * </p><p>
     * This action is not a touch event so it is delivered to
     * {link View#onGenericMotionEvent(MotionEvent)} rather than
     * {link View#onTouchEvent(MotionEvent)}.
     * </p>
     */
    public static final int ACTION_HOVER_EXIT = 10;

    public DragInfo dragInfo;

    public int getAction() {
        return 0;
    }

    ;
}
